/*
 * HTTPResponse.h
 *      Author: DePhille
 */

#ifndef HTTPRESPONSE_H_
#define HTTPRESPONSE_H_


// HTTPResponse object:
typedef struct {
	GList*			headers;
	gchar*			contents;
	unsigned short	code;
} PC_HTTPResponse;


// Methods:
static PC_HTTPResponse*		PC_HTTPResponse_New(const gchar* contents);
static void					PC_HTTPResponse_Delete(PC_HTTPResponse* response);
static gchar*				PC_HTTPResponse_GetHeader(const PC_HTTPResponse* response, const gchar* headerName);


#endif /* HTTPRESPONSE_H_ */
